using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

using RFEngine;
using RFEngine.Graphics;
using RFEngine.Graphics.Effects;

namespace Rockfan
{
    #region Main Entry Point

    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            using (RockfanGame game = new RockfanGame())
            {
                game.Run();
            }
        }
    }

    #endregion

    /// <summary>
    /// This is the main type for your game
    /// </summary>
    public class RockfanGame : Microsoft.Xna.Framework.Game
    {
        GraphicsDeviceManager graphics;

        public RockfanGame()
        {
            graphics = new GraphicsDeviceManager(this);
            //IsFixedTimeStep = false;
            //graphics.SynchronizeWithVerticalRetrace = false;
            //graphics.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings);
            //graphics.PreferredBackBufferWidth = 1600;
            //graphics.PreferredBackBufferHeight = 900;
            //graphics.IsFullScreen = true;
        }

        void graphics_PreparingDeviceSettings(object sender, PreparingDeviceSettingsEventArgs e)
        {
            
        }

        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            EngineServices.Intialize(this);
            Font font = new Font(@"Data\Themes\Default\Fonts\Menufont.otf", 128);
            Text text = EntityManager.AddText(font, "Rockfan");
            text.Z = 20;

            base.Initialize();
        }

        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
 
        }

        protected override void Update(GameTime gameTime)
        {

            base.Update(gameTime);
        }

        protected override void Draw(GameTime gameTime)
        {            

            base.Draw(gameTime);
        }
    }
}
